package com.yxd.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: yxd
 * @date: 2022/8/1 9:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "rule")
public class Rule {
    /**
     * 规则ID
     */
    @TableId(type = IdType.AUTO)
    private Long ruleId;
    /**
     * 规则名称
     */
    private String name;
    /**
     * 规则描述
     */
    private String description;
    /**
     * 规则优先级
     */
    private Integer priority;
    /**
     * 规则条件
     */
    private String conditions;
    /**
     * 规则动作
     */
    private String action;
    /**
     * 是否为复合规则(0：否1：是)
     */
    private Integer isComposited;
    /**
     * 复合规则类型(1：UnitRuleGroup2：ActivationRuleGroup3：ConditionalRuleGroup)
     */
    private Integer compositeRuleType;
    /**
     * 复合规则ID集合
     */
    private String compositeRuleIds;
    /**
     * 是否启用(0：否1：是)
     */
    private Integer isEnabled;
    /**
     * 规则类型
     */
    private Integer ruleType;
}
